package net.dopan.pigframe.user.model.entity;


import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import lombok.*;

import java.io.Serializable;
import java.util.Date;

/**
 * @author wufeihong
 *  活动分类表
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = true)
@TableName("activity_classify")
public class ActivityClassify extends Model<ActivityClassify> {

  private static final long serialVersionUID = 1L;

  @TableId(value = "classify_id", type = IdType.AUTO)
  private long classifyId;
  @TableField("classify_name")
  private String classifyName;
  @TableField("create_time")
  private Date createTime;
  @TableField("update_time")
  private Date updateTime;

  @Override
  protected Serializable pkVal() {
    return this.classifyId;
  }
}
